package br.com.resources;

import java.awt.Graphics;

public class Player {
	
	private String name;
	private Sprite avatar;
	private int x;
	private int y;
	
	public Player(String ref, int x, int y){
		this.avatar = SpriteStore.get().getSprite(ref);
		this.x = x;
		this.y = y;
	}
	
	public void draw(Graphics g) {
		avatar.draw(g,(int) x,(int) y);
	}

	/** @return the name */
	public String getName() {
		return name;
	}

	/** @param name the name to set */
	public void setName(String name) {
		this.name = name;
	}
	
}
